<%@ page language="java"  pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@include file="/WEB-INF/pages/common.jsp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>教师列表</title>

<script type="text/javascript">

$(function(){
$("#submitBtn").click(function(){

	 $("#teacherForm").ajaxSubmit({
		    url:"${pageContext.request.contextPath}/com/stranger/index/indexAction_insert.action",
		    type:"POST",
		    dataType:"json",

		    success:function(data){
		    	///alert(data);
		    	//window.location.href="${pageContext.request.contextPath}/com/stranger/index/indexAction_initQueryTeacher.action";
		    }
		 });
//		UI.ajaxSubmit({
//			url:"${pageContext.request.contextPath}/com/stranger/index/indexAction_insert.action",
//			type:"POST",
//			dataType:"json",
//			success:function(data){}
//		});
//	UI.ajaxSubmit({
//			url:"${pageContext.request.contextPath}/com/stranger/index/indexAction_insert.action",
//		    type:"POST",
//		    dataType:"json"
//
////		    success:function(data){
////		    	alert(data);
////		    	//window.location.href="${pageContext.request.contextPath}/com/stranger/index/indexAction_initQueryTeacher.action";
////		    }
//	});

});
	
});

</script>
  </head>
  
  <body >
<sms:pageLoading>
 <form id="teacherForm" name="teacherForm">
 <table id="teacherTable" border="1" width="100%" align="center">
  <caption>教师信息</caption>
  <tr>
	  <td class="table_td" align="right">用户名</td>
	  <td><input type="text" name="user.userName"/>  </td>
	  <td class="table_td" align="right">密码</td>
	  <td><input type="text" name="user.password"/></td>
  </tr>
    <tr>
	  <td class="table_td" align="right">姓名</td>
	  <td><input type="text" name="user.realName"/>  </td>
	  <td class="table_td" align="right">性别</td>
	  <td><input type="radio" name="user.sex" value="F"/>女
	  <input type="radio" name="user.sex" value="M" checked="checked"/>男
	  </td>
  </tr>
  
   <tr>
	  <td class="table_td" align="right">籍贯</td>
	  <td><input type="text" name="user.nativeName"/>  </td>
	  <td class="table_td" align="right">住址</td>
	  <td><input type="text" name="user.address"/>
	  </td>
  </tr>
    <tr>
	  <td class="table_td" align="right">邮箱</td>
	  <td><input type="text" name="user.email"/>  </td>
	  <td class="table_td" align="right">电话</td>
	  <td><input type="text" name="user.tel"/>
	  </td>
  </tr>
 <tr class="tableFooter">
 <td colspan="4">
 </tr>
 </table>
<div  class="table_footer">
<input type="button" id="submitBtn"  value="保存"/>
<input type="button" value="返回"/>
</div>
</form>
</sms:pageLoading>
  </body>
</html>
